package com.a.a;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

public abstract class e<ActionT extends NightMode<SubscriberT>, OnSubscribeT extends h, SubscriberT extends aa> {
    @NonNull
    final ActionT a;
    @Nullable
    public o b;
    @Nullable
    public o c;

    protected e(@NonNull ActionT arg1) {
        this.a = arg1;
    }

    @NonNull
    public abstract aa a(@Nullable OnSubscribeT onsubscribet, @Nullable o oVar, @NonNull o oVar2);

    @NonNull
    public final aa a() {
        return this.b(null);
    }

    @NonNull
    public final aa a(@NonNull OnSubscribeT arg2) {
        android.support.design.a.b(arg2);
        return this.b(arg2);
    }

    @NonNull
    private aa b(@Nullable OnSubscribeT arg5) {
        if (android.support.design.a.f == null) {
            android.support.design.a.f = new p((byte) 0);
        }

        o v0 = android.support.design.a.f;
        aa v1 = this.a(arg5, this.c, v0);
        android.support.design.a.b(v1);
        v1.onStart();
        f v2 = new f(this, v1);
        if (this.b != null) {
            this.b.a(v2);
        } else {
            v0.a(v2);
        }

        return v1;
    }
}

